import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.applet.*;
import javax.swing.*;
public class LookAndFellDemo extends JApplet {
    JButton button;
    public void init() {
	String laf = "javax.swing.plaf.metal";
	try {
	    UIManager.setLookAndFeel(laf);
	}
	catch (UnsupportedLookAndFeelException ex) {
	    System.err.println("Warning: UnsupportedLookAndFeel:" + laf);
	}
	catch (Exception exc) {
	    System.err.println("Error loading " + laf + ": " + exc);
	}
	getContentPane().setLayout(new FlowLayout());
	button = new JButton("<html><body>Hello, <br>I'm a swing Button! <br>" +
			     "You can see different styles!</body></html>");
	getContentPane().add(button);
    }
    public void stop() {
	if (button != null) {
	    getContentPane().remove(button);
	    button = null;
	}
    }
}
